﻿@model IEnumerable<KRM.Core.vLoadFailedDeliveryOrder>
@{
    ViewBag.Title = "ViewFailDeliveryOrder";
    Layout = "~/Views/Shared/_PopupLayout.cshtml";
}

<div style="padding: 10px">
    <div class="row-fluid">
        <form method="GET" action="/Load/ViewFailDeliveryOrder">
            <div class="span1">OrderRef:</div>
            <div class="span2">
                <input type="text" class="input-block-level" name="OrderRef" value="" />
            </div>
            <div class="span1">LoadCode:</div>
            <div class="span2">
                <input type="text" class="input-block-level" name="LoadCode" value="" />
            </div>
            <div class="span1">UserName:</div>
            <div class="span3">
                <input type="text" class="input-block-level" name="UserName" value="" />
            </div>

            <div class="span2 text-right">
                <input type="submit" value="Search" class="btn btn-primary" />
                <button class="btn btn-primary" type="button" onclick="window.location.href='/load/viewfaildeliveryorder'"><i class="icon-refresh"></i></button>
            </div>
        </form>
    </div>
    <table class="table table-bordered table-fix">
        <thead>
            <tr>
                <th>OrderRef</th>
                <th>LoadCode</th>
                <th>DateTime</th>
                <th>UserName</th>
                <th>WarehouseName</th>
                <th>CarrierName</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td>@item.OrderRef</td>
                    <td>@item.OriginalLoadCode</td>
                    <td>@item.TimeLog</td>
                    <td>@item.Username</td>
                    <td>@item.WarehouseName</td>
                    <td>@item.carrierName</td>
                </tr>
            }
        </tbody>
    </table>
</div>
